#include <my_head.h>

int main(int argc, const char *argv[]){
    int num = 0x12345678;
    int ret = htonl(num);
    printf("%#x --> %#x\n", num, ret);
    // 小端：  0x12345678 --> 0x78563412
    // 小端：  0x12345678 --> 0x12345678
    return 0;
}